package com.zerui.manager.deviceTouch.convertor;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.deviceTouch.DeviceTouch;
import com.zerui.manager.deviceTouch.entity.DeviceTouchDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface DeviceTouchConvert {

	DeviceTouchConvert INSTANCE = Mappers.getMapper(DeviceTouchConvert.class);

	DeviceTouch convertDeviceTouchDoToDeviceTouch(DeviceTouchDO deviceTouchDO);

	DeviceTouchDO convertDeviceTouchToDeviceTouchDo(DeviceTouch deviceTouch);

	List<DeviceTouch> convertDeviceTouchDosToDeviceTouchs(List<DeviceTouchDO> deviceTouchDOS);

	List<DeviceTouchDO> convertDeviceTouchsToDeviceTouchDos(List<DeviceTouch> deviceTouches);

    Page<DeviceTouch> covertDeviceTouchDOPageToAccessRecord(Page<DeviceTouchDO> deviceTouchDOPage);
}
